'''
获取输入边数，传递绘图
变量类型转换
调用n边型旋转
'''
from turtle import *


def rotation(edge):
    angle = 360 / edge - 1
    for x in range(360):
        forward(x)
        left(angle)
    return


edge_size = numinput('edge size', 'please input edge size:')
# edge_size = int(edge_size)
rotation(edge_size)
done()
